<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Construct Web | Article Form</title>
</head>
<body>
	<center>
		<div style="color: teal; font-size: 30px">Construct Web |
			Insert Article Form</div>
		<form:form id="insertArticleForm" modelAttribute="article" method="post"
			action="insertArticle">
			<table width="400px" height="150px">
				<tr>
					<td><form:label path="title">Title</form:label></td>
					<td><form:input path="title"></form:input></td>
				</tr>
				<tr>
					<td><form:label path="content">Content</form:label></td>
					<td><form:input path="content"></form:input></td>
				</tr>
				<tr>
					<td><form:label path="urlImage">Url Image</form:label></td>
					<td><form:input path="urlImage"></form:input></td>
				</tr>
				
				<tr>
					<td><form:label path="idSubCategory">Id Sub Category</form:label></td>
<%-- 					<td><form:input path="idCategory"></form:input></td> --%>
					<td>
						<form:select path="idSubCategory">
<%-- 							<form:option value="-" label="--Please Select"/> --%>
              				<form:options items="${subCategoryList}" itemValue="id" itemLabel="name"/>
						</form:select>
					</td>
				</tr>
				<tr>
					<td></td>
					<td><input type="submit" value="Insert"></input></td>
				</tr>
			</table>
		</form:form>

		<a href="article-list-form">Click here to see Article List</a>
	</center>

</body>
</html>